package com.document.entity.po;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "file")
public class FileManageEntity {

    /** id */
    @TableId(type = IdType.INPUT)
    @Excel(name = "文件ID",width = 35)
    private String id;

    /** 文件名 */
    @Excel(name = "文件名",width = 25)
    private String fileName;

    /** 文件大小 */
    @Excel(name = "文件大小",width = 15)
    private String fileSize;

    /** 文件路径 */
    @ExcelIgnore
    private String filePath;

    /** 0:共享 1：私有 */
    @Excel(name = "文件状态", replace = { "共享_0", "私有_1"},width = 15)
    private Integer fileStatus;

    /** 文件MD5密码 */
    @ExcelIgnore
    private String filePassword;

    /** 研究主题 */
    @Excel(name = "研究主题",width = 25)
    private String fileTheme;

    @Excel(name = "文件类型",
            replace = { "数据文件_0", "图像文件_1" ,
                    "视频文件_2", "论文文件_3", "各类电子文书_4"}
            ,width = 18)
    private Integer fileType;

    /** 创建用户 */
    @Excel(name = "创建用户",width = 18)
    private String createUserName;

    /** createTime */
    @Excel(name = "创建时间",format="yyyy-MM-dd HH:mm:ss",width =20)
    private Date createTime;
	
	/** 文件URL */
    @ExcelIgnore
    @TableField(exist = false)
    private String fileUrl;
}
